package com.base.service.impl;

import com.base.mapper.voipmapper.UserBankSettingMapper;
import com.base.po.voip.UserBankSetting;
import com.base.po.voip.UserBankSettingExample;
import com.base.service.UserBankSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("UserBankSettingService")
public class UserBankSettingServiceImpl implements UserBankSettingService {
    @Autowired
    UserBankSettingMapper userBankSettingMapper;
    @Override
    public int countByExample(UserBankSettingExample example) {
        return userBankSettingMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(UserBankSettingExample example) {
        return userBankSettingMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userBankSettingMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserBankSetting record) {
        return userBankSettingMapper.insert(record);
    }

    @Override
    public int insertSelective(UserBankSetting record) {
        return userBankSettingMapper.insertSelective(record);
    }

    @Override
    public List<UserBankSetting> selectByExample(UserBankSettingExample example) {
        return userBankSettingMapper.selectByExample(example);
    }

    @Override
    public UserBankSetting selectByPrimaryKey(Integer id) {
        return userBankSettingMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(UserBankSetting record, UserBankSettingExample example) {
        return userBankSettingMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(UserBankSetting record, UserBankSettingExample example) {
        return userBankSettingMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(UserBankSetting record) {
        return userBankSettingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserBankSetting record) {
        return userBankSettingMapper.updateByPrimaryKey(record);
    }

    @Override
    public Integer countByUserId(String adminid) {
        return userBankSettingMapper.countByUserId(adminid);
    }

    @Override
    public UserBankSetting selectByUsers(String adminid) {
        return userBankSettingMapper.selectByUsers(adminid);
    }
}
